home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v8n21.arc / PCMANAGE.DOC < prev    next >
Text File  |  1989-11-11  |  5KB  |  93 lines

  1. PCMANAGE and DCOMPRES Documentation file
  2.  
  3. UTILITIES  
  4. Vol. 8, No. 21
  5.  
  6. Ross M. Greenberg 
  7. December 12, 1989 (Utilities)
  8.  
  9. Purpose: To provide automatic compression of infrequently accessed files and 
  10.          automatic decompression when they are called.  The user can set the 
  11.          inactive period necessary before a file is compressed, can restrict 
  12.          the drive and/or path of operation, and can specifically exclude 
  13.          named files or directories.
  14.  
  15. Format: DCOMPRES [/i] [/An]
  16.     
  17. Remarks: DCOMPRES is a memory-resident program that should be loaded from an 
  18.          AUTOEXEC.BAT file.  In each subdirectory it creates and maintains a 
  19.          file called INDEX.CMP.  This file stores the date and time each file 
  20.          was last accessed and whether the file is compressed or not.  When a 
  21.          compressed file is called, DCOMPRES decompresses it automatically.
  22.  
  23.     INDEX.CMP files are normally created with a Read-Only file attribute,
  24.         as they should never be deleted while any compressed files remain in 
  25.         the directory.  To remove a directory requires changing this file 
  26.         attribute with the DOS ATTRIB command (for DOS 3.x) or with a utility 
  27.         such as ATTR.COM (PC Magazine, June 10, 1986).  INDEX.CMP files can be 
  28.         created with other attributes by loading DCOMPRES with its optional 
  29.         /An switch, where n has one of the following values:  0 (visible, 
  30.         read-write); 1 (hidden, read-write); 2 (visible, read-only--the 
  31.         default); or 3 (hidden, read-only).
  32.  
  33.     If an INDEX.CMP file is accidentally deleted or damaged, all compressed
  34.         files in a directory can be restored by loading DCOMPRES with its 
  35.         optional /i switch parameter and issuing a command such as COPY *.* 
  36.         NUL.
  37.  
  38. Format:    PCMANAGE [/i] [/dn] [/cn] [/bn] [/pd]
  39.  
  40. Remarks: When invoked with its default settings, PCMANAGE compresses all files
  41.          on drive C: (including those in all subdirectories) that have not been
  42.          accessed in 7 days and whose compression will save at least 10 percent
  43.          in file length and 2,048 bytes (nominally one cluster).  The user can
  44.          change the number of days before compression by employing the optional 
  45.          /dn switch with values from 1 to 32767 for n.  Similarly, the optional
  46.          /cn switch sets the minimum acceptable compression percentage and 
  47.          accepts any n value of 5 or greater.  The /bn switch sets the number
  48.          of bytes in one disk cluster (the minimum real saving possible); it 
  49.          accepts values from 1024 to 32767 for n.
  50.  
  51.     The optional /pd switch, with an appropriate drive letter (and/or path)
  52.         entered for d, allows PCMANAGE to be used on drives other than C: and 
  53.         permits restricting its operations to the files along a specific path 
  54.         (and its subdirectories).
  55.  
  56.     The /i switch is used with PCMANAGE when installing the utility.  This
  57.         should not be done until after you have prepared any necessary 
  58.         DCOMPRES.EXL (exclude) file, as described in the Notes below.  That 
  59.         done, and with DCOMPRES loaded, use the DOS DATE command to set the 
  60.         current date back by at least one week.  Then enter PCMANAGE /i, which 
  61.         will cause it to examine all files on drive C: (or as modified by the
  62.         /pn switch).  Use the DATE command to reset the present date and run 
  63.         PCMANAGE again, without the /i parameter.  All files on the drive 
  64.         except those excluded by DCOMPRES.EXL or the optional /pn switch will
  65.         now be compressed initially, if warranted by the disk space savings. 
  66.         The files will be decompressed as soon as accessed, and programs called
  67.         frequently will not be compressed again.  
  68.  
  69.     Running PCMANAGE weekly will automatically cause files that have become
  70.         stale-dated to be compressed.
  71.  
  72. Note 1:    Up to 100 files or directories (and child directories below them) can
  73.         be excluded from possible compression by PCMANAGE.  All OS/2 files and
  74.         copy-protected software should be so excluded.  To do so, create a 
  75.         pure ASCII file called DCOMPRES.EXL in the root directory of drive C:. 
  76.         List one entry per line.  To exclude all files that have a .SYS 
  77.         extension and all files in and under an OS2 directory on drive C:, the
  78.         DCOMPRES.EXL file would have two entries:
  79.     
  80.     *.SYS
  81.     C:\OS2\*
  82.  
  83. Note 2:    DCOMPRES and PCMANAGE can handle a maximum of 100 files per directory.
  84.         Files in excess of this number will not be harmed, but will not be 
  85.         processed.
  86.  
  87. Note 3: DCOMPRES should be installed in the AUTOEXEC.BAT file before any 
  88.         anti-virus software.  Anti-virus software that uses checksumming 
  89.         procedures that cannot be disabled until program execution time is 
  90.         incompatible with DCOMPRES.
  91.  
  92.  
  93.